/**
*@author       wuwg
*@createTime   2018/03/20
*@updateTime   2018/05/02
*@description
*@rule
 */
@import '../../../config/config.less';

@css-prefix-card: ~"@{css-prefix}card";

.@{css-prefix-card} {
  background: #fff;
  border-radius: @border-radius-small;
  font-size: @font-size-base;
  position: relative;
  overflow: hidden;
  //overflow: hidden;
  transition: all @transition-time @ease-in-out;

  &-bordered {
    border: 1px solid @border-color-base;
    border-color: @border-color-split;
  }

  &-shadow {
    box-shadow: @shadow-card;
  }

  &:hover {
    box-shadow: @shadow-base;
    border-color: #eee;
  }

  &&-dis-hover:hover {
    box-shadow: none;
    border-color: transparent;
  }

  &&-dis-hover&-bordered:hover {
    border-color: @border-color-split;
  }

  &&-shadow:hover {
    box-shadow: @shadow-card;
  }

  &-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 14px 16px;
    line-height: 1;
    border-bottom: 1px solid @border-color-split;
  }

  &-body {
    padding: 16px;
    width: 100%;
    height: 100%;
    overflow: auto;
  }
}
